package cn.pangza.user.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class Role {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @NotNull(message = "名称不能为空")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @NotNull(message = "中文名称不能为空")
    @NotEmpty(message = "中文名称不能为空")
    private String nameZh;
}
